<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动实例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .box1 {
            width: 1200px;
            height: 460px;
            margin: 0 auto;
            background-color: pink;
        }

        .box1 .left a {

            border-top: 0.1px solid rgba(0, 0, 0, 0.3);
        }

        .box2 {
            width: 1202px;
            height: 285px;
            background-color: pink;
            margin: 0 auto;
        }

        .box2 li {
            float: left;
            width: 290px;
            height: 285px;
            background-color: purple;
            margin-right: 14px;
        }

        .left {

            float: left;
            width: 230px;
            height: 460px;
            background-color: purple;
            margin: 0 auto;
        }

        .right {
            float: left;
            width: 970px;
            height: 460px;
            background-color: skyblue;
        }

        /* 1.把 a 转换为块级元素 */
        a {
            display: block;
            width: 200px;
            height: 65.7px;
            background-color: #55585a;
            font-size: 14px;
            color: #fff;
            text-decoration: none;
            padding-left: 30px;
            /* text-indent: 2em; */
            line-height: 65px;
        }

        a:hover {
            background-color: #ff6700;
        }
        .box2 .last {
            margin-right: 0;
        }
    </style>
</head>

<body>
    <div class="box1">
        <div class="left">
            <a href="#">手机 电话卡</a>
            <a href="#">电视 盒子</a>
            <a href="#">笔记本 平板</a>
            <a href="#">出行 穿戴</a>
            <a href="#">智能 路由器</a>
            <a href="#">健康 儿童</a>
            <a href="#">耳机 音响</a>
        </div>
        <div class="right"><img src="../html_css_material-master/第五天/images/小米win11.jpg" alt="小米电脑" width="970"
                height="460"></div>
    </div>
    <ul class="box2">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li class="last">4</li>
    </ul>
</body>

</html>